Adwaita: ensure titlebar corners are not rounded...
authorLapo Calamandrei <calamandrei@gmail.com>
Sat, 16 Apr 2016 09:58:14 +0000 (11:58 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Sat, 16 Apr 2016 10:04:02 +0000 (12:04 +0200)
...when the window is maximized or tiled, by using more specific
selectors, since there were cases of erroneusly rounded corners.
See https://bugzilla.gnome.org/show_bug.cgi?id=765038

gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index 4833bd405f037581febc7086a0e5870321ce3d94..c7f67190c8b0021882b207e4854a9081e213fbf1 100644 (file)
@@ -1534,7 +1534,7 @@ headerbar {
   }
 }
 
-.titlebar {
+window:not(.tiled):not(.maximized) .titlebar {
   &, &:backdrop {
     border-top-left-radius: 7px;
     border-top-right-radius: 7px;
@@ -1542,10 +1542,10 @@ headerbar {
 }
 
 headerbar {
-  separator:first-child + &, // tackles the paned container case
-  &:first-child { &, &:backdrop { border-top-left-radius: 7px; }}
+  window:not(.tiled):not(.maximized) separator:first-child + &, // tackles the paned container case
+  window:not(.tiled):not(.maximized) &:first-child { &:backdrop, & { border-top-left-radius: 7px; }}
 
-  &:last-child { &, &:backdrop { border-top-right-radius: 7px; }}
+  window:not(.tiled):not(.maximized) &:last-child { &:backdrop, & { border-top-right-radius: 7px; }}
 }
 
 .titlebar:not(headerbar) {
@@ -4163,6 +4163,7 @@ decoration {
     transition: $backdrop_transition;
   }
 
+  .maximized &,
   .fullscreen &,
   .tiled & { border-radius: 0; }
 
index 4e647dbd36b238a3e691188229c16d5a56aaa441..7202795c9f7e852e43e9f897fb7833d1dc3f5df4 100644 (file)
@@ -1947,13 +1947,13 @@ headerbar button {
   margin-top: 6px;
   margin-bottom: 6px; }
 
-.titlebar, .titlebar:backdrop {
+window:not(.tiled):not(.maximized) .titlebar, window:not(.tiled):not(.maximized) .titlebar:backdrop {
   border-top-left-radius: 7px;
   border-top-right-radius: 7px; }
 
-separator:first-child + headerbar, separator:first-child + headerbar:backdrop, headerbar:first-child, headerbar:first-child:backdrop {
+window:not(.tiled):not(.maximized) separator:first-child + headerbar:backdrop, window:not(.tiled):not(.maximized) separator:first-child + headerbar, window:not(.tiled):not(.maximized) headerbar:first-child:backdrop, window:not(.tiled):not(.maximized) headerbar:first-child {
   border-top-left-radius: 7px; }
-headerbar:last-child, headerbar:last-child:backdrop {
+window:not(.tiled):not(.maximized) headerbar:last-child:backdrop, window:not(.tiled):not(.maximized) headerbar:last-child {
   border-top-right-radius: 7px; }
 
 window.csd > .titlebar:not(headerbar) {
@@ -4369,7 +4369,7 @@ decoration {
   decoration:backdrop {
     box-shadow: 0 3px 9px 1px transparent, 0 2px 6px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(28, 31, 31, 0.9);
     transition: 200ms ease-out; }
-  .fullscreen decoration, .tiled decoration {
+  .maximized decoration, .fullscreen decoration, .tiled decoration {
     border-radius: 0; }
   .popup decoration {
     box-shadow: none; }
index 048cd891884abc5feca1a4478dac751c37bc70c0..aaa0aaeca52b91df0ec1c5d13fbf0019bd7635d0 100644 (file)
@@ -1954,13 +1954,13 @@ headerbar button {
   margin-top: 6px;
   margin-bottom: 6px; }
 
-.titlebar, .titlebar:backdrop {
+window:not(.tiled):not(.maximized) .titlebar, window:not(.tiled):not(.maximized) .titlebar:backdrop {
   border-top-left-radius: 7px;
   border-top-right-radius: 7px; }
 
-separator:first-child + headerbar, separator:first-child + headerbar:backdrop, headerbar:first-child, headerbar:first-child:backdrop {
+window:not(.tiled):not(.maximized) separator:first-child + headerbar:backdrop, window:not(.tiled):not(.maximized) separator:first-child + headerbar, window:not(.tiled):not(.maximized) headerbar:first-child:backdrop, window:not(.tiled):not(.maximized) headerbar:first-child {
   border-top-left-radius: 7px; }
-headerbar:last-child, headerbar:last-child:backdrop {
+window:not(.tiled):not(.maximized) headerbar:last-child:backdrop, window:not(.tiled):not(.maximized) headerbar:last-child {
   border-top-right-radius: 7px; }
 
 window.csd > .titlebar:not(headerbar) {
@@ -4398,7 +4398,7 @@ decoration {
   decoration:backdrop {
     box-shadow: 0 3px 9px 1px transparent, 0 2px 6px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.18);
     transition: 200ms ease-out; }
-  .fullscreen decoration, .tiled decoration {
+  .maximized decoration, .fullscreen decoration, .tiled decoration {
     border-radius: 0; }
   .popup decoration {
     box-shadow: none; }